<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/libs/modernizr.min.js"></script>
    <script src="__PUBLIC__/Admin/js/libs/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/libs/list.js"></script>
  </head>
  <body>
    {:W("Public/topShow")}
    <div class="container clearfix">
      {:W("Public/sideShow")}
      <!--/sidebar-->
      <div class="main-wrap">
	
        <div class="crumb-wrap">
          <div class="crumb-list"><i class="icon-font"></i><a href="{:U('index/index')}">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:U('ClassInfo/index')}">分类管理</a><span class="crumb-step">&gt;</span><span>新增分类</span></div>
        </div>
        <div class="result-wrap">
          <div class="result-content">
            <form action="{:U('ClassInfo/doAddClass')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
              <table class="insert-tab" width="100%">
                <tbody>
		  <tr>
                    <th><i class="require-red">*</i>所属类别：</th>
                    <td>
		      <select name="pid">
			<option value="0">顶级栏目</option>
			<foreach name="category" item="categorys">
			  <option value="{$categorys.id}">{$categorys.catname}</option>
			  <if condition="$categorys['child']">
			    <foreach name="categorys['child']" item = "child">
			      <option value="{$child.id}">&nbsp;&nbsp;&nbsp;|-{$child.catname}</option>
			    </foreach>
			  </if>
			</foreach>
		      </select>
                    </td>
                  </tr>
                  <tr>
                    <th><i class="require-red">*</i>名称：</th>
                    <td>
                      <input class="common-text required" required id="title" name="catname" size="50"  type="text">
                    </td>
                  </tr>
		  <tr>
                    <th>图片：</th>
                    <td>
		      <input class="common-text required"  id="title" name="image" size="50"  type="file">
                    </td>
                  </tr>
                  <tr>
                    <th><i class="require-red">*</i>排序：</th>
                    <td>
		      <input class="common-text required" required id="title" name="sort" value="1" size="50"  type="text">
                    </td>
                  </tr>
                  <tr>
                    <th>栏目内容：</th>
                    <td >
                      <!-- 加载编辑器的容器 -->
                      <script id="container"  name="content" style="width:100%" type="text/plain">&nbsp;</script>
                      <!-- 配置文件 -->
                      <script type="text/javascript" src="__PUBLIC__/Admin/utf8-php/ueditor.config.js"></script>
                      <!-- 编辑器源码文件 -->
                      <script type="text/javascript" src="__PUBLIC__/Admin/utf8-php/ueditor.all.js"></script>
                      <!-- 实例化编辑器 -->
                      <script type="text/javascript">
                       var ue = UE.getEditor('container');
                      </script>
                    </td>
                  </tr>
                  <tr>
                    <th></th>
                    <td>
                      <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                      <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                    </td>
                  </tr>
                </tbody>
	      </table>
            </form>
          </div>
        </div>
	
      </div>
      <!--/main-->
    </div>
  </body>
</html>
